
export default {
	namespaced:true,
	state: {
		list:[],
	},
	getters: {
		getList:state=>{
			return state.list;
		}
	},
	mutations: {
		addKey(state,key){
			state.list.push(key);
			state.list=[...Array.from(new Set(state.list))];
		},
		delKey(state){
			state.list = [];
		}
	},
	actions: {
		addKeyWord(context,keyword){
			context.commit('addKey',keyword);
		},
		delList(context){
			context.commit('delKey');
		}
	}
}